<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>{$title}</title>
    <css href="__PUBLIC__/css/reset.css"/>
    <css href="__PUBLIC__/css/style.css"/>
    <css href="__PUBLIC__/css/bootstrap.min.css"/>
</head>
<body>
<include file="./Application/Home/View/nav.html"/>
<div class="container">
    <div class="row" style="margin-top:20px;">
        <div class="col-lg-6">
            <img src="__PUBLIC__/images/LOGO.png" class="img-responsive"/>
        </div>
    </div>

    <div class="row" style="margin-top:20px;">
        <div class="col-lg-6">
            <img src="__PUBLIC__/images/people.png" class="img-responsive"/>
        </div>
        <div class="col-lg-6" style="width:580px; height:230px; margin-top: 80px; padding-left: 0px;">
            <div class="col-lg-12" style="width: 100%;height: 33%; color:#ff2d4b; font-family: '黑体'; font-size: 32px; text-align: center; font-weight: bold; padding-top: 10px; ">
                <span>{$tips}</span>
            </div>
            <if condition="session('?success') && $_SESSION['success']=='shopkeeper'">
                <div class="col-lg-12" style="width: 100%;height: 66%;text-align: center; padding-top: 35px; font-family: '黑体';">
                    <p style="color: #999999; font-size: 22px;"><a href="{:U('/detail')}" style="color: #ff2d4b; font-size: 22px; text-decoration: underline;">点击此处</a>去完善个人信息</p>
                    <p style="color: #999999; font-size: 22px;">即将返回首页&nbsp;&nbsp;<label id="timeout" style="color: #ff2d4b;">4</label>秒</p>
                </div>
             <elseif condition="session('?success') && $_SESSION['success']=='member'"/>
                <div class="col-lg-12" style="width: 100%;height: 66%;text-align: center; padding-top: 35px; font-family: '黑体';">
                    <p style="color: #999999; font-size: 22px;">我想成为<a href="{:U('/ureg')}" style="color: #ff2d4b; font-size: 22px; text-decoration: underline;">妈妈好菜会员GO&gt;&gt;</a></p>
                    <br/>
                    <p style="color: #999999; font-size: 22px;">我想成为<a href="{:U('/kreg')}" style="color: #ff2d4b; font-size: 22px; text-decoration: underline;">妈妈好菜店主GO&gt;&gt;</a></p>
                </div>
             <elseif condition="session('?nickname')"/>
                <div class="col-lg-12" style="width: 100%;height: 66%;text-align: center; padding-top: 35px; font-family: '黑体';">
                    <p style="color: #999999; font-size: 22px;">即将返回首页&nbsp;&nbsp;<label id="timeout" style="color: #ff2d4b;">4</label>秒</p>
                    <p style="color: #999999; font-size: 22px;">您也可以<a href="javascript:void(0)" style="color: #ff2d4b; font-size: 22px; text-decoration: underline;">到处逛逛&gt;&gt;</a></p>
                </div>
             <else/>
                <div class="col-lg-12" style="width: 100%;height: 66%;text-align: center; padding-top: 35px; font-family: '黑体';">
                    <p style="color: #999999; font-size: 22px;">即将返回首页&nbsp;&nbsp;<label id="timeout" style="color: #ff2d4b;">4</label>秒</p>
                </div>
            </if>
            <!--js跳转代码-->
            <script type="text/javascript">
                var i = 4;
                var intervalid;
                intervalid = setInterval("fun()", 1000);
                function fun() {
                    if (i == 0) {
                        window.location.href = "<?php echo U('/index');?>";
                        clearInterval(intervalid);
                    }
                    document.getElementById("timeout").innerHTML = i;
                    i--;
                }
            </script>
        </div>
    </div>
</div>
</body>
</html>